package com.erp.erp_dao.money;

import com.erp.erp_entitys.money.entity.ReceivePaymentRefundEntity;

import java.util.List;

/**
 * 资金管理-收款-退款表(ReceivePaymentRefund)表数据库访问层
 *
 * @author lst
 * @since 2020-12-07 19:38:07
 */
public interface IReceivePaymentRefundDao {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    ReceivePaymentRefundEntity queryById(Integer id);



    /**
     * 通过实体作为筛选条件查询
     *
     * @param receivePaymentRefund 实例对象
     * @return 对象列表
     */
    List<ReceivePaymentRefundEntity> queryAll(ReceivePaymentRefundEntity receivePaymentRefund);

    /**
     * 新增数据
     *
     * @param receivePaymentRefund 实例对象
     * @return 影响行数
     */
    int insert(ReceivePaymentRefundEntity receivePaymentRefund);

    /**
     * 详情批量新增
     * @param list 新增对象集合
     * @return 影响行数
     */
    int addList(List<ReceivePaymentRefundEntity> list);

    /**
     * 修改数据
     *
     * @param receivePaymentRefund 实例对象
     * @return 影响行数
     */
    int update(ReceivePaymentRefundEntity receivePaymentRefund);


}